import 'package:flutter/material.dart';

class BasicDemo extends StatelessWidget {
  final TextStyle _textStyle = TextStyle(
    fontSize: 16.0
  );

  final String _author = '李白';
  final String _title = '静夜思';

  @override 
  Widget build(BuildContext context) {
    return Container(
      child: ListView(
        children: [
          Text(
            '《$_title》\n$_author \n 全部实行集中隔离观察并完成两轮核酸检测，除首轮检测中9人核酸检测结果阳性并已及时发布外，其余均为阴性；已排查到密切接触者的密切接触者269人，全部实行',
            textAlign: TextAlign.center,
            style: _textStyle,
            maxLines: 5,
            overflow: TextOverflow.ellipsis,
          ),
          RichText(
            text: TextSpan(
              text: 'wangxh',
              style: TextStyle(
                color: Colors.deepPurple,
                fontSize: 34.0,
                fontStyle: FontStyle.italic,
                fontWeight: FontWeight.bold
              ),
              children: [
                TextSpan(
                  text: 'xiaoyan',
                  style: TextStyle(
                    fontWeight: FontWeight.bold,
                    color: Colors.pink
                  )
                )
              ]
            )
          ),
          Container(
            decoration: BoxDecoration(
              image: DecorationImage(
                image: NetworkImage('https://image.ghub.cn/prd/static/2020-10-04/u%3D2534506313%2C1688529724%26fm%3D26%26gp%3D0.jpg'),
                // repeat: ImageRepeat.repeat,
                fit: BoxFit.cover,
                colorFilter: ColorFilter.mode(
                  Colors.yellow[40], BlendMode.hardLight
                )
              )
            ),
            child:Row(
              children: <Widget>[
                Container(
                  child: Icon(Icons.redeem, size: 32.0, color:Colors.yellow[100]),
                  // color: Color.fromRGBO(3, 54, 255, 1.0),
                  padding: EdgeInsets.all(5.0),
                  margin: EdgeInsets.all(8.0),
                  width: 90.0,
                  height: 90.0,
                  decoration: BoxDecoration(
                    color: Color.fromRGBO(3, 54, 255, 1.0),
                    border: Border.all(
                      color: Colors.yellow,
                        width: 3.0,
                        style: BorderStyle.solid
                    ),
                    borderRadius: BorderRadius.only(
                      topLeft: Radius.circular(45),
                      bottomLeft: Radius.circular(45)
                    )
                  ),
                ),
                Container(
                  child: Icon(Icons.settings, size: 32.0, color:Colors.white70),
                  // color: Color.fromRGBO(133, 54, 255, 1.0),
                  padding: EdgeInsets.all(5.0),
                  margin: EdgeInsets.all(8.0),
                  width: 110.0,
                  height: 110.0,
                  decoration: BoxDecoration(
                    color: Color.fromRGBO(103, 154, 199, 1.0),
                    border: Border.all(
                      color: Colors.orange,
                      width: 3.0,
                      style: BorderStyle.solid
                    ),
                    // borderRadius: BorderRadius.all(Radius.circular(55)),
                    boxShadow: [
                      BoxShadow(
                        offset: Offset(6.0,7.0),
                        color: Color.fromRGBO(16, 20, 188, 1.0),
                        blurRadius: 25.0,
                        spreadRadius: -4.0
                      )
                    ],
                    shape: BoxShape.circle,
                    gradient: LinearGradient(
                      colors: [
                        Colors.red,
                        Colors.green
                      ],
                      begin: Alignment.topCenter,
                      end: Alignment.bottomCenter
                    )
                  ),
                ),
                Container(
                  child: Icon(Icons.queue_sharp, size: 32.0, color:Colors.white70),
                  color: Color.fromRGBO(133, 154, 50, 1.0),
                  padding: EdgeInsets.all(5.0),
                  margin: EdgeInsets.all(8.0),
                  width: 40.0,
                  height: 40.0,
                )
              ]
            )
          )
        ]
      )
    );
  }
}